package com.itheima.reggie.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.entity.AddressBook;

import java.util.List;

public interface AddressBookService extends IService<AddressBook>  {

    void saves(AddressBook addressBook);

    void update(LambdaUpdateWrapper<AddressBook> wrapper);

    void updateByIds(AddressBook addressBook);

    AddressBook getById(Long id);

    AddressBook getOne(LambdaQueryWrapper<AddressBook> queryWrapper);

    List<AddressBook> list(LambdaQueryWrapper<AddressBook> queryWrapper);
}
